package com.tozed.android.launcher;

import java.util.List;

import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.view.MenuItem;

import com.tozed.android.launcher.R;

public class Preferences extends PreferenceActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getActionBar().setDisplayHomeAsUpEnabled(true);
        addPreferencesFromResource(R.xml.preferences);
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
        case android.R.id.home:
            onBackPressed();
            return true;

        default:
            break;
        }
        return super.onOptionsItemSelected(item);
    }
}
